package com.atguigu.cloud.component;

import com.atguigu.cloud.interceptor.MybatisTimeInterceptor;
import org.apache.ibatis.plugin.Interceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Jungle
 */
@Configuration
public class MybatisConfig {

    @Bean
    public Interceptor mybatisTimeInterceptor() {
        return new MybatisTimeInterceptor();
    }
}
